package org.dromara.netbar.domain.vo;

import org.dromara.netbar.domain.NetbarProductCategory;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 商品分类管理视图对象 netbar_product_category
 *
 * @author ZhouWenTao
 * @date 2025-08-18
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = NetbarProductCategory.class)
public class NetbarProductCategoryVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 分类ID
     */
    @ExcelProperty(value = "分类ID")
    private Long categoryId;

    /**
     * 分类名称
     */
    @ExcelProperty(value = "分类名称")
    private String categoryName;

    /**
     * 分类编码
     */
    @ExcelProperty(value = "分类编码")
    private String categoryCode;

    /**
     * 父级ID（0为顶级）
     */
    @ExcelProperty(value = "父级ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=为顶级")
    private Long parentId;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sortOrder;

    /**
     * 图标URL
     */
    @ExcelProperty(value = "图标URL")
    private String iconUrl;

    /**
     * 分类描述
     */
    @ExcelProperty(value = "分类描述")
    private String description;

    /**
     * 状态（0启用 1禁用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=启用,1=禁用")
    private String status;


}
